package vip.xiaonuo.web.core.provider.sys.wechat;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.sys.feign.WechatFeign;
import vip.xiaonuo.sys.modular.resource.provider.WechatApiProvider;

/**
 * @author zjt
 * @description
 * @date 2025/7/21 09:43
 */
@Slf4j
@RestController
@RequiredArgsConstructor
public class WechatFeignProvider implements WechatFeign {

    private final WechatApiProvider wechatApiProvider;

    /**
     * 发送应用文字通知
     *
     * @param toUserId
     * @param content
     */
    @Override
    @RequestMapping("/feign/sys/wechat/sendAppTextNotice")
    public void sendAppTextNotice(String toUserId, String content) {
        wechatApiProvider.sendAppTextNotice(toUserId, content);
    }
}
